﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;
namespace RSUDay1
{
    public partial class VDOPlayer : PhoneApplicationPage
    {
        public VDOPlayer()
        {
            InitializeComponent();
        }

        private void playButton_Click(object sender, System.EventArgs e)
        {
        	// TODO: Add event handler implementation here.
			maboy_mp4.Play();
			//maboy_mp4.Stop();
			//maboy_mp4.Pause();
			//maboy_mp4.Volume = maboy_mp4.Volume + 0.1;
			//maboy_mp4.Volume = maboy_mp4.Volume - 0.1;
			
        }
		public void shareMaboy(){
			ShareLinkTask share = new ShareLinkTask();
			share.LinkUri = new Uri("htpp://micthailand.net/wp7/camp/files/maboy.mp4");
			share.Title = "Maboy video";
			share.Message = "That cool !!";
			share.Show();
		}

		private void shareButton_Click(object sender, System.EventArgs e)
		{
			shareMaboy();
		}

		private void aboutButton_Click(object sender, System.EventArgs e)
		{
			// TODO: Add event handler implementation here.
			//index.php?a=10&b=20
			NavigationService.Navigate(new Uri("/AboutPage.xaml?vdo=Maboy",
							UriKind.RelativeOrAbsolute));
		}

		private void stopMV(object sender, System.EventArgs e)
		{
			// TODO: Add event handler implementation here.
			maboy_mp4.Stop(); 
		}

		private void volumnUP(object sender, System.EventArgs e)
		{
			// TODO: Add event handler implementation here.		
			maboy_mp4.Volume = maboy_mp4.Volume + 0.1;
		}

		private void volumnDown(object sender, System.EventArgs e)
		{
			// TODO: Add event handler implementation here.
			maboy_mp4.Volume = maboy_mp4.Volume - 0.1; 
		}
    }
}
